const app = getApp();
Page({
    data:{
        id:'',
        men:0,
        title:'',
        money:0,
        phone:'',
        warning:'',
        time: '',
        user:'',
        address: '',
        desc:''
    },
    onLoad(option){
        this.setData({
            id:option.id
        });
        app.axios('/workinfo/'+this.data.id,'GET',response=>{
            if(response){
                if (response){
                    this.setData({
                        men:response.men,
                        title:response.title,
                        warning:response.warning,
                        phone:response.phone,
                        time:response.time,
                        money:response.money,
                        user:response.user,
                        address:response.address,
                        desc:response.desc
                    })
                }
            }
        });
    }
});
